package com.example.onlinemusic.service;

import com.example.onlinemusic.model.Music;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import javax.websocket.Session;
import java.util.List;

public interface MusicService {
    int insertMusic(String singer, MultipartFile file, HttpSession session);// 上传音乐

    Music selectByTitleAndSinger(String title, String singer); // 查询音乐通过音乐名和作者

    int deleteMusicById(int musicId); // 删除单个音乐

    int deleteSelMusicById(List<Integer> musicIds); // 批量删除音乐

    List<Music> findAllMusic();

    List<Music> findMusicByName(String title);
}
